vt-d: Fix MSI-x interrupt remapping
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Oct 2008 10:58:15 +0000 (11:58 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 15 Oct 2008 10:58:15 +0000 (11:58 +0100)
commitf0064d9c2b46a9032863ea05378672e4c5735292
tree52cab1a0953a39fd605c2be3ce84c51762d930d6
parent41a0f8dc4488e0415bda939c42fe3497247f47e1
vt-d: Fix MSI-x interrupt remapping

MSI-x may have multiple vectors, however in current interrupt
remapping code, one device only has one entry in interrupt remapping
table.

This patch adds 'remap_index' in msi_desc structure to track its index
in interrupt remapping table.

Signed-off-by: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/arch/x86/msi.c
xen/drivers/passthrough/vtd/intremap.c
xen/include/asm-x86/msi.h